package cn.tedu._06springaop.egaop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

public class TestCartService {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu._06springaop");
        CartServiceImpl bean = (CartServiceImpl) context.getBean("cartServiceImpl");
        bean.addCart("零食");
    }
}
